import { createApp } from 'vue'
import './style.css'
//全局自适应导入
import 'amfe-flexible'
//导入css动画
import 'animate.css';
import 'hover.css'
//引入echarts
import * as echarts from "echarts";
//routes
import router from "./router/routers/index"
//引入stores暴露出的pinia的实例
import pinia from './stores'
//引入svg组件
import svgIcon from '@/components/svgIcon/index.vue'
import ElementPlus from 'element-plus' //全局引入element
import 'element-plus/dist/index.css'
import zhCn from 'element-plus/dist/locale/zh-cn.mjs'
import App from './App.vue'
const app = createApp(App)
// 全局挂载 echarts
app.config.globalProperties.$echarts = echarts;
app.component('svg-icon', svgIcon)
app.use(pinia)
app.use(router)
//使用element-plus插件 汉化{locale:zhCn}
app.use(ElementPlus, {
  locale: zhCn,
})
app.mount('#app')
